﻿namespace HamcoWcs.Models.DeviceMsgs.BconMsgs.BconRecvTel
{
    public class BconTel_DU : BconBaseTel
    {
        public string RequestType { get; set; }
        public string Device_ID { get; set; }
        public string Destination_DeviceID { get; set; }
        public string Parcel_ID { get; set; }
        public string Parcel_TaskID { get; set; }
        public string Parcel_SizeCheck { get; set; }
        public string Parcel_WeightCheck { get; set; }
        public string Parcel_BarcodeResult { get; set; }
        public string Parcel_Size { get; set; }
        public string Parcel_Weight { get; set; }
        public string Parcel_Barcode { get; set; }
        public BconTel_DU(string data) : base(data)
        {
            RequestType = data.Substring(5, 1);
            Device_ID = data.Substring(6, 4);
            Destination_DeviceID = data.Substring(10, 4);
            Parcel_ID = data.Substring(14, 3);
            Parcel_TaskID = data.Substring(17, 15);
            Parcel_SizeCheck = data.Substring(32, 1);
            Parcel_WeightCheck = data.Substring(33, 1);
            Parcel_BarcodeResult = data.Substring(34, 1);
            Parcel_Size = data.Substring(35, 12);
            Parcel_Weight = data.Substring(47, 8);
            Parcel_Barcode = data.Substring(55, 40);
            Tel_End = data.Substring(95, 2);

        }
    }
}
